/*  reset */
*{
    box-sizing: border-box;
    outline: none;
}

html{
    font-size: 13px; 
    /* 基础字体大小 */
}
body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.2em;
    background-color: #F1F1F1;
    // 抗锯齿渲染可以使字体看起来会更清晰舒服
    -webkit-font-smoothing:antialiased;
}
a{
    color: #999999;
}
p{
    line-height: 1.6em;
}

// color
$colors:(
    'primary':#db9e3f,
    'info':#4b67af,
    'blue':#4394e4,
    'white':#fff,
    'white-1':#fcfcfc,
    'white-2':#eceef0,
    'light':#f9f9f9,
    'light-1':#d4d9de,
    'grey':#999,
    'grey-1':#666,
    'dark-1':#343440,
    'dark':#222,
    'black':#000,
);
$border-color:map-get($colors,'light-1' );


// font-size
$base-font-size:1rem;
$font-size:(
    'xxs':0.6154,
    'xs':0.7692,    //10px
    'sm':0.9231, //12px
    'md':1,         //13px
    'lg':1.0769,  //14px
    'xl':1.2308 //16px
);

// 宽高
.w-100{
    width: 100%;
}

.h-100{
    height: 100%;
}


//flex

.d-flex{
    display: flex;
}
.flex-column{
    flex-direction: column;
}
.flex-wrap{
    flex-wrap: wrap;
}

$flex-jc:(
    start:flex-start,
    end:flex-end,
    center:flex-center,
    between:space-between,
    around:space-around,
);
// align-item
$flex-ai:(
    start:flex-start,
    end:flex-end,
    center:center,
    stretch:stretch,
);

// 拓展整个空余的空间
.flex-1{
    flex:1;
}
// 等同于上一个类，意味填充整个剩余空间
.flex-grow-1{
    flex-grow: 1;
}


// 常用边距margin、padding定义
$spacing-base-size:1rem;

$spacing-types:(m:margin,p:padding);
$spacing-directions:(t:top,r:right,b:bottom,l:left);
$spacing-sizes:(0:0,1:0.25,2:0.5,3:1,4:1.5,5:3);


.btn{
    border:none;
    border-radius:0.1538rem;
    font-size:map-get($map:$font-size , $key:'sm' ) * $base-font-size    ;
    padding: 0.2rem,0.6rem;
    &.btn-lg{
        display:flex;
        justify-content: center;
        align-items: center;
        i{
            color: map-get($map: $colors, $key:'primary' );
            font-size: 1.5rem;
            font-weight: bold;
            margin-right: 0.5rme;
        }
        padding: 0.8rem 1rem;
        font-size: 1rem;
        background: map-get($map: $colors, $key:'white-1' );
        border: 1px solid map-get($map: $colors, $key: 'white-2');
    }
}

.nav{
    display: flex;
    &.nav-inverse{
        .nav-item{
             color: map-get($colors,'white');
        }   
        .nav-inverse-active{
            border-bottom-color:map-get($colors, 'white')  ;
        }
    }
    .nav-item{
        border-bottom: 3px solid transparent;
        padding-bottom:.2rem;
        &.active{
        color: map-get($colors, 'primary');
        border-bottom-color:map-get($colors,'primary' );
        }
    }
}
.sprite{
    background:no-repeat 0 0;
    background-size: 28.8462rem;
    display:inline-block;
    &.sprite-news{
    width:  1.7692rem;
	height: 1.5385rem;
    // background-position: -1.9rem -0.2rem;
    background-position: 63.546% 15.517%;
    }
    // &.sprite-story{
 
    // }
    &.sprite-arrow{
     width: 0.7692rem;
     height: 0.7692rem;
     background-position: 38.577% 52.076%;
    }
}






